home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BEERSRC.ZIP / SOUND.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-14  |  714 b   |  29 lines

  1.  
  2. // Header file for sound support module.
  3.  
  4.  
  5. #define SND_PACKED4        0x0001
  6. struct sndstrc {
  7.  
  8.    int    priority;            // Priority of sample.
  9.    int    samplerate;            // Sample rate in kHz.
  10.    int    flags;            // Raw or packed sample?
  11.    long   len;                // Sample len in bytes.
  12.    char   data[];            // Sampled data.
  13.  
  14. };
  15.  
  16.  
  17. int initsound(int snd_io, int snd_irq, int snd_dma);
  18. void shutsound(void);
  19. void playsample(struct sndstrc far *snd);
  20. void playloop(struct sndstrc far *snd);
  21. void playfile(int filvar, void far *buffer, int bs);
  22. void playfileloop(int filvar, void far *buffer, int bs);
  23. void snd_cli(void);
  24. void snd_sti(void);
  25. void haltsound(void);
  26. int soundbusy(void);
  27. int speaker(int state);
  28.  
  29.